package araxy.blog.interceptor.exceptionhandler;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import java.text.ParseException;

@ControllerAdvice
public class UtilsExceptionHandler {
    @ExceptionHandler(JsonProcessingException.class)
    public void JsonProcessingExceptionHandler(JsonProcessingException e) {
        e.getStackTrace();
    }

    @ExceptionHandler(ParseException.class)
    public void ParseExceptionExceptionHandler (ParseException e) {
        e.getStackTrace();
    }

}
